package cn.wit.summit.chwan.models.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by tangbl on 2017/9/13.
 */

public class CommentBaseBean implements Serializable {

    /**
     * id : 77
     * uid : 14
     * user_name : Salem_1984
     * rank :
     * head_portrait : system_1
     * game_id : 509474702
     * content : 测试一下新建点评
     * mobile_phone_model : xiaomi7
     * praise_count : 0
     * despise_count : 0
     * start_game_count : 0
     * approval_rate : 0.0
     * add_times : 1505233366
     * reply_count : 0
     * is_praise : 1
     * is_despise : 0
     * is_old : 0
     */

    private String id;
    private String uid;
    private String user_name;
    private String rank;
    private String head_portrait;
    private String game_id;
    private String content;
    private String mobile_phone_model;
    private long praise_count;
    private String despise_count;
    private String start_game_count;
    private String approval_rate;
    private String add_times;
    private int is_belong_to;
    private long reply_count;
    private String mapping;
    private String stars_score;
    private int is_praise;
    private int is_despise;
    private int is_old;
    private List<SubCommentBean> sub_comment;
    private int pn;
    private int vip_level;
    private int svip_level;
    private boolean isfirst;
    private boolean isShowMore=false;

    public CommentBaseBean() {
    }
    public CommentBaseBean(CommentBaseBean bean) {
        this.id = bean.getId();
        this.uid = bean.getUid();
        this.user_name = bean.getUser_name();
        this.rank = bean.getRank();
        this.head_portrait = bean.getHead_portrait();
        this.game_id = bean.getGame_id();
        this.content = bean.getContent();
        this.mobile_phone_model = bean.getMobile_phone_model();
        this.praise_count = bean.getPraise_count();
        this.stars_score = bean.getStars_score();
        this.despise_count = bean.getDespise_count();
        this.start_game_count = bean.getStart_game_count();
        this.approval_rate = bean.getApproval_rate();
        this.add_times = bean.getAdd_times();
        this.is_belong_to = bean.getIs_belong_to();
        this.reply_count = bean.getReply_count();
        this.mapping = bean.getMapping();
        this.is_old = bean.getIs_old();
        this.is_praise = bean.getIs_praise();
        this.is_despise = bean.getIs_despise();
//            this.sub_comment = bean.getSub_comment();
        this.pn = bean.getPn();

        if (this.sub_comment == null) this.sub_comment = new ArrayList<>();
        this.sub_comment.addAll(bean.getSub_comment());
    }

    public int getIs_belong_to() {
        return is_belong_to;
    }

    public void setIs_belong_to(int is_belong_to) {
        this.is_belong_to = is_belong_to;
    }

    public String getMapping() {
        return mapping;
    }

    public void setMapping(String mapping) {
        this.mapping = mapping;
    }

    public List<SubCommentBean> getSub_comment() {
        return sub_comment;
    }

    public void setSub_comment(List<SubCommentBean> sub_comment) {
        this.sub_comment = sub_comment;
    }

    public boolean isShowMore() {
        return isShowMore;
    }

    public void setShowMore(boolean showMore) {
        isShowMore = showMore;
    }

    public boolean isIsfirst() {
        return isfirst;
    }

    public void setIsfirst(boolean isfirst) {
        this.isfirst = isfirst;
    }

    public int getVip_level() {
        return vip_level;
    }

    public void setVip_level(int vip_level) {
        this.vip_level = vip_level;
    }

    public int getSvip_level() {
        return svip_level;
    }

    public void setSvip_level(int svip_level) {
        this.svip_level = svip_level;
    }

    public int getPn() {
        return pn;
    }

    public void setPn(int pn) {
        this.pn = pn;
    }

    public String getStars_score() {
        return stars_score;
    }

    public void setStars_score(String stars_score) {
        this.stars_score = stars_score;
    }

    //是否热门评论(1热门 2普通)
    private int     is_hot;
    private boolean isTitle;

    public int getIs_hot() {
        return is_hot;
    }

    public void setIs_hot(int is_hot) {
        this.is_hot = is_hot;
    }

    public boolean isTitle() {
        return isTitle;
    }

    public void setTitle(boolean title) {
        isTitle = title;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getHead_portrait() {
        return head_portrait;
    }

    public void setHead_portrait(String head_portrait) {
        this.head_portrait = head_portrait;
    }

    public String getGame_id() {
        return game_id;
    }

    public void setGame_id(String game_id) {
        this.game_id = game_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMobile_phone_model() {
        return mobile_phone_model;
    }

    public void setMobile_phone_model(String mobile_phone_model) {
        this.mobile_phone_model = mobile_phone_model;
    }

    public long getPraise_count() {
        return praise_count;
    }

    public void setPraise_count(long praise_count) {
        this.praise_count = praise_count;
    }

    public String getDespise_count() {
        return despise_count;
    }

    public void setDespise_count(String despise_count) {
        this.despise_count = despise_count;
    }

    public String getStart_game_count() {
        return start_game_count;
    }

    public void setStart_game_count(String start_game_count) {
        this.start_game_count = start_game_count;
    }

    public String getApproval_rate() {
        return approval_rate;
    }

    public void setApproval_rate(String approval_rate) {
        this.approval_rate = approval_rate;
    }

    public String getAdd_times() {
        return add_times;
    }

    public void setAdd_times(String add_times) {
        this.add_times = add_times;
    }

    public long getReply_count() {
        return reply_count;
    }

    public void setReply_count(long reply_count) {
        this.reply_count = reply_count;
    }

    public int getIs_praise() {
        return is_praise;
    }

    public void setIs_praise(int is_praise) {
        this.is_praise = is_praise;
    }

    public int getIs_despise() {
        return is_despise;
    }

    public void setIs_despise(int is_despise) {
        this.is_despise = is_despise;
    }

    public int getIs_old() {
        return is_old;
    }

    public void setIs_old(int is_old) {
        this.is_old = is_old;
    }

    public static class SubCommentBean implements Serializable {
        /**
         * id : 1645785
         * uid : 4387637
         * user_name : papa11573
         * rank :
         * head_portrait : http://ctimg.mg3721.com/upload/images/headportrait/public/system_9.png
         * game_id : 509474702
         * content : 444444444
         * mobile_phone_model : MI 6
         * praise_count : 0
         * despise_count : 0
         * start_game_count : 0
         * stars_score : 0
         * approval_rate : 0
         * add_times : 1506496871
         * reply_count : 1
         * mapping : 1645782,1645785,
         * is_old : 0
         * is_praise : 0
         * is_despise : 0
         */

        private String id;
        private String uid;
        private String user_name;
        private String rank;
        private String head_portrait;
        private String game_id;
        private String content;
        private String mobile_phone_model;
        private long praise_count;
        private long despise_count;
        private String start_game_count;
        private String stars_score;
        private String approval_rate;
        private String add_times;
        private String reply_count;
        private String mapping;
        private String is_old;
        private int is_praise;
        private int is_despise;
        private int vip_level;
        private int svip_level;
        private int reply_vip_level;
        private int reply_svip_level;

        public int getReply_vip_level() {
            return reply_vip_level;
        }

        public void setReply_vip_level(int reply_vip_level) {
            this.reply_vip_level = reply_vip_level;
        }

        public int getReply_svip_level() {
            return reply_svip_level;
        }

        public void setReply_svip_level(int reply_svip_level) {
            this.reply_svip_level = reply_svip_level;
        }

        public int getVip_level() {
            return vip_level;
        }

        public void setVip_level(int vip_level) {
            this.vip_level = vip_level;
        }

        public int getSvip_level() {
            return svip_level;
        }

        public void setSvip_level(int svip_level) {
            this.svip_level = svip_level;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getUser_name() {
            return user_name;
        }

        public void setUser_name(String user_name) {
            this.user_name = user_name;
        }

        public String getRank() {
            return rank;
        }

        public void setRank(String rank) {
            this.rank = rank;
        }

        public String getHead_portrait() {
            return head_portrait;
        }

        public void setHead_portrait(String head_portrait) {
            this.head_portrait = head_portrait;
        }

        public String getGame_id() {
            return game_id;
        }

        public void setGame_id(String game_id) {
            this.game_id = game_id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getMobile_phone_model() {
            return mobile_phone_model;
        }

        public void setMobile_phone_model(String mobile_phone_model) {
            this.mobile_phone_model = mobile_phone_model;
        }

        public long getPraise_count() {
            return praise_count;
        }

        public void setPraise_count(long praise_count) {
            this.praise_count = praise_count;
        }

        public long getDespise_count() {
            return despise_count;
        }

        public void setDespise_count(long despise_count) {
            this.despise_count = despise_count;
        }

        public String getStart_game_count() {
            return start_game_count;
        }

        public void setStart_game_count(String start_game_count) {
            this.start_game_count = start_game_count;
        }

        public String getStars_score() {
            return stars_score;
        }

        public void setStars_score(String stars_score) {
            this.stars_score = stars_score;
        }

        public String getApproval_rate() {
            return approval_rate;
        }

        public void setApproval_rate(String approval_rate) {
            this.approval_rate = approval_rate;
        }

        public String getAdd_times() {
            return add_times;
        }

        public void setAdd_times(String add_times) {
            this.add_times = add_times;
        }

        public String getReply_count() {
            return reply_count;
        }

        public void setReply_count(String reply_count) {
            this.reply_count = reply_count;
        }

        public String getMapping() {
            return mapping;
        }

        public void setMapping(String mapping) {
            this.mapping = mapping;
        }

        public String getIs_old() {
            return is_old;
        }

        public void setIs_old(String is_old) {
            this.is_old = is_old;
        }

        public int getIs_praise() {
            return is_praise;
        }

        public void setIs_praise(int is_praise) {
            this.is_praise = is_praise;
        }

        public int getIs_despise() {
            return is_despise;
        }

        public void setIs_despise(int is_despise) {
            this.is_despise = is_despise;
        }
    }
}
